package sy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;

import sy.service.RoleServiceI;

@Controller
@RequestMapping("/roleController")
public class RoleController {
	@Autowired
	private RoleServiceI roleServiceI;

	@RequestMapping("/showRole")
	@ResponseBody
	public String showRole() {
		return JSON.toJSONStringWithDateFormat(roleServiceI.selectAll(), "yyyy-MM-dd HH:mm:ss");
	}

}
